package com.yx.china.service;

import com.yx.china.project.entities.Payment;
import com.yx.china.project.entities.ResponseResult;
import com.yx.china.service.impl.PaySeviceException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "cloudalibaba-pay-service",fallback = PaySeviceException.class)
public interface PayService {
    @GetMapping("/pay/{id}")
    public ResponseResult<Payment> paymentSQL(@PathVariable("id") Integer id);
}
